<?php
declare (strict_types = 1);
namespace security;

/**
 * 认证 - 登录
 */
class Authentication {

    private array $authorities = [];

    private $detail = [];

    private $name = '';

    private UserDetails $principal;

    /**
     * 获取允许权限
     */
    public function getAuthorities() {
        return $this->authorities;
    }

    /**
     * 
     */
    public function getPrincipal() {
        return $this->principal;
    }
}